﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;

namespace HelperPrototype
{
    static class Program
    {
        public static string MaNguoiDungHienTai = null;
        public static _DB.NguoiDung NguoiDungHienTai = null;
        //public static Sunisoft.IrisSkin.SkinEngine skinEngine = new Sunisoft.IrisSkin.SkinEngine();

        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            //try
            //{

                Application.EnableVisualStyles();
                Application.SetCompatibleTextRenderingDefault(false);
                //LoginForm loginForm = new LoginForm();
                //Application.Run(new Form1());
                Application.Run(new LoginForm());

                while (true)
                {
                    if (MaNguoiDungHienTai != null)
                    {
                        Application.Run(new Main());

                        if (MaNguoiDungHienTai == null)
                            Application.Run(new LoginForm());
                        else
                            break;
                    }
                    else
                        break;
                }

            //}
            //catch (System.Exception ex)
            //{
            //    MessageBox.Show(ex.Message);
            //}
               
              
        }
    }
}
